﻿package code {
	import flash.display.Shape;
	
	public class Support extends Shape {
		private var w:Number;             // size along x
		private var h:Number;             // size along y
		private var topLeftCorner:Vertex; 
		private var color:uint;           // color of polygon
		
		public function Support(topLeftCorner:Vertex, w:Number, h:Number) {
			this.topLeftCorner = topLeftCorner;
			this.w = w;
			this.h = h;
			this.color = color;
			init();
		}
		
		public function init():void {
			graphics.beginFill(color);
			graphics.drawRect(topLeftCorner.x,topLeftCorner.y, w, h); 
			graphics.endFill();
		}
	}
}